<template>
  <div class="border">
    <ElCard class="box-card">
      <template #header>
        <div class="card-header">
          <h3>{{ title }}</h3>
        </div>
      </template>
      <div class="text item">
        <slot />
      </div>
    </ElCard>
  </div>
</template>

<script>
import { ElCard } from "element3";
export default {
  components: {
    ElCard,
  },
  props: ["title"],
};
</script>
<style lang="scss">
.card-header {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}
h3 {
  border-left: 4px solid rgb(18, 127, 199);
  padding-left: 20px;
  height: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}

.box-card {
  width: 100%;
  border: none;
}
.el-card__header {
  padding: 0;
  border-bottom: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  height: 30px;
}
.el-card.is-always-shadow,
.el-card.is-hover-shadow:focus,
.el-card.is-hover-shadow:hover {
  box-shadow: 0 0;
}
</style>